package com.blue.base.demo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blue.base.demo.entity.Role;
import com.blue.base.demo.vo.RoleTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author liulei
 * @version 1.0
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 获取ztree的节点列表
     */
    List<RoleTreeVo> tree(@Param("pid") Long pid);

    /**
     * 获取部门下的角色信息
     */
    List<RoleTreeVo> getRolesByDeptId(@Param("list") List<Long> list);
}
